from tensorflow.core.framework import graph_pb2
from tensorflow.python.platform import gfile

input_graph_def = graph_pb2.GraphDef()
with gfile.FastGFile("E:/Projects/tensorflow/python/logs/train_learningrate1/expert_graph1.pb", "rb") as f:
    input_graph_def.ParseFromString(f.read())

for node in input_graph_def.node:
#   print (node)
    print (node.name)
